package com.aaa.member.service.impl;

import com.aaa.entity.AwardPointSystem;
import com.aaa.entity.SysDictData;
import com.aaa.entity.SysDictType;
import com.aaa.member.dao.AwardPointSystemDao;
import com.aaa.member.service.AwardPointSystemService;
import com.aaa.vo.AwardPointSystemVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/2/28 16:15
 */
@Service
public class AwardPointSystemServiceImpl extends ServiceImpl<AwardPointSystemDao, AwardPointSystem> implements AwardPointSystemService {
   @Autowired
   private AwardPointSystemDao awardPointSystemDao;

    @Override
    public Result list(Integer currentPage, Integer pageSize,AwardPointSystemVo awardPointSystemVo) {
        PageHelper.startPage(currentPage, pageSize);
        List<AwardPointSystemVo> sysDictTypes = awardPointSystemDao.selectListName(awardPointSystemVo.getName());
        PageInfo<AwardPointSystemVo> sysDictTypePageInfo = new PageInfo<>(sysDictTypes);
        return new Result(2000,"成功",sysDictTypePageInfo);
    }
}
